﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ResultUC
{
    /// <summary>
    /// Time execution user control
    /// </summary>
    /// <remarks>trungpv@vnext.vn</remarks>
    public partial class TimeExecution : UserControl
    {
        #region Attributs and Getter/Setter
        #endregion
        public TimeExecution()
        {
            InitializeComponent();
        }

        private void TimeExecution_Load(object sender, EventArgs e)
        {
        }

        /// <summary>
        /// Update time execution information given result and time
        /// </summary>
        /// <param name="result"></param>
        /// <param name="time"></param>
        public void updateTimeExecution(bool result, double time)
        {
            lblResult.Image = result ? Properties.Resources._48x48_ok : Properties.Resources._48x48_ng;
            tbTimeExecution.Text = time.ToString("####0.00");
        }
    }
}
